package edu.uoc.tds.pec4.gestor;

import edu.uoc.tds.pec4.model.SS1_CentroDocente;
import edu.uoc.tds.pec4.model.SS1_TipoEvento;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

/**
 * Tecnicas de Desarrollo de Software - (UOC)
 *
 * @version 1.0
 */
public interface GestorDisco extends Remote {
    public Boolean conectaBD() throws RemoteException;
    public void desconectaBD() throws RemoteException;
    public ResultSet select(String p_NombreTabla) throws RemoteException, SQLException, Exception;
    public ResultSet select(String p_NombreTabla, String p_Condicion) throws RemoteException, SQLException, Exception;
    public ResultSet select(String p_NombreTabla, String p_Condicion, String p_Campos) throws RemoteException, SQLException, Exception;
    public ResultSet selectQuery(String p_Consulta) throws RemoteException, SQLException, Exception;
    public boolean insertQuery(String p_Consulta) throws RemoteException, SQLException, Exception;
    public int insert(String p_NombreTabla, String p_Valores) throws RemoteException, SQLException, Exception;
    public int insert(String p_NombreTabla, String p_Valores, String p_Campos) throws RemoteException, SQLException, Exception;
    public int update(String p_NombreTabla, String p_Campos) throws RemoteException, SQLException, Exception;
    public int update(String p_NombreTabla, String p_Condicion, String p_Campos) throws RemoteException, SQLException, Exception;
    public List getComboUniversidades() throws RemoteException;
    public List<SS1_TipoEvento> getComboTipoEvento() throws RemoteException;
    public List<SS1_CentroDocente> getComboCentroDocente() throws RemoteException;
    public List<String> getComboPaises() throws RemoteException, RemoteException, SQLException;

}
